(function($) {

	/*点击搜索事件*/
	$(".search-wrapper > a").on("click", function() {
		$('.search-form').toggleClass('active');
	});

	/*轮播图*/
	var productSlider = $('.product-carousel');
	productSlider.slick({
		arrows: true,
		infinite: true,
		slidesToShow: 4,
		prevArrow: '<button type="button" class="slick-prev"><i class="fa fa-angle-left"></i></button>',
		nextArrow: '<button type="button" class="slick-next"><i class="fa fa-angle-right"></i></button>',
		responsive: [{
			breakpoint: 1200,
			settings: {
				slidesToShow: 3,
			}
		}, {
			breakpoint: 991,
			settings: {
				slidesToShow: 3,
			}
		}, {
			breakpoint: 767,
			settings: {
				slidesToShow: 2,
			}
		}, {
			breakpoint: 479,
			settings: {
				slidesToShow: 1,
			}
		}]
	});

})(jQuery);
